/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guobo.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 参会人Entity
 * @author wudavid
 * @version 2017-03-09
 */
public class Participant extends DataEntity<Participant> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String rfid;		// rfid
	private String name;		// 名称
	private String sex;		// 性别
	private String status;		// 状态
	private String creType;		// 证件类型
	private String creNum;		// 证件号码
	private String creAddress;		// 证件地址
	private String phone;		// 电话
	private String workUnit;    //工作单位
	private String grade;		// 人员级别
	private String type;		// 人员类型
	private String feature;		// 特征
	
	public String getWorkUnit() {
		return workUnit;
	}

	public void setWorkUnit(String workUnit) {
		this.workUnit = workUnit;
	}

	public Participant() {
		super();
	}

	public Participant(String id){
		super(id);
	}

	@Length(min=0, max=32, message="编码长度必须介于 0 和 32 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=64, message="rfid长度必须介于 0 和 64 之间")
	public String getRfid() {
		return rfid;
	}

	public void setRfid(String rfid) {
		this.rfid = rfid;
	}
	
	@Length(min=0, max=32, message="名称长度必须介于 0 和 32 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=2, message="性别长度必须介于 0 和 2 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=2, message="状态长度必须介于 0 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=2, message="证件类型长度必须介于 0 和 2 之间")
	public String getCreType() {
		return creType;
	}

	public void setCreType(String creType) {
		this.creType = creType;
	}
	
	@Length(min=0, max=32, message="证件号码长度必须介于 0 和 32 之间")
	public String getCreNum() {
		return creNum;
	}

	public void setCreNum(String creNum) {
		this.creNum = creNum;
	}
	
	@Length(min=0, max=64, message="证件地址长度必须介于 0 和 64 之间")
	public String getCreAddress() {
		return creAddress;
	}

	public void setCreAddress(String creAddress) {
		this.creAddress = creAddress;
	}
	
	@Length(min=0, max=32, message="电话长度必须介于 0 和 32 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=2, message="人员级别长度必须介于 0 和 2 之间")
	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}
	
	@Length(min=0, max=2, message="人员类型长度必须介于 0 和 2 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="特征长度必须介于 0 和 64 之间")
	public String getFeature() {
		return feature;
	}

	public void setFeature(String feature) {
		this.feature = feature;
	}
	
}